]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/scroll-view: Fix issue in st_scroll_view_scroll_event()
authorAndrew Zaech <azaech021@gmail.com>
Tue, 29 Aug 2023 01:03:12 +0000 (01:03 +0000)
committerRobert Mader <robert.mader@collabora.com>
Tue, 29 Aug 2023 11:25:54 +0000 (13:25 +0200)
adjust_with_direction() uses a ClutterScrollDirection not ClutterTextDirection

Fixes: 23b439dc ("st/scroll-view: Use ClutterEvent getter methods")
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6937

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2920>

src/st/st-scroll-view.c

index edaa0278dad35ce30f49a8008d4d027ec86c87aa..cd31b376ca2a382d113c2e1e9f0ab3b5db2f8d05 100644 (file)
@@ -793,7 +793,7 @@ st_scroll_view_scroll_event (ClutterActor *self,
       break;
     case CLUTTER_SCROLL_UP:
     case CLUTTER_SCROLL_DOWN:
-      adjust_with_direction (priv->vadjustment, direction);
+      adjust_with_direction (priv->vadjustment, scroll_direction);
       break;
     case CLUTTER_SCROLL_LEFT:
     case CLUTTER_SCROLL_RIGHT:
@@ -807,7 +807,7 @@ st_scroll_view_scroll_event (ClutterActor *self,
         }
       else
         {
-          adjust_with_direction (priv->hadjustment, direction);
+          adjust_with_direction (priv->hadjustment, scroll_direction);
         }
       break;
     default: